package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SegRegEmailInfoMapper;
import com.ruoyi.system.domain.SegRegEmailInfo;
import com.ruoyi.system.service.ISegRegEmailInfoService;

/**
 * 邮箱验证码表Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-05
 */
@Service
public class SegRegEmailInfoServiceImpl implements ISegRegEmailInfoService 
{
    @Autowired
    private SegRegEmailInfoMapper segRegEmailInfoMapper;

    /**
     * 查询邮箱验证码表
     * 
     * @param id 邮箱验证码表主键
     * @return 邮箱验证码表
     */
    @Override
    public SegRegEmailInfo selectSegRegEmailInfoById(Long id)
    {
        return segRegEmailInfoMapper.selectSegRegEmailInfoById(id);
    }

    /**
     * 查询邮箱验证码表列表
     * 
     * @param segRegEmailInfo 邮箱验证码表
     * @return 邮箱验证码表
     */
    @Override
    public List<SegRegEmailInfo> selectSegRegEmailInfoList(SegRegEmailInfo segRegEmailInfo)
    {
        return segRegEmailInfoMapper.selectSegRegEmailInfoList(segRegEmailInfo);
    }

    /**
     * 新增邮箱验证码表
     * 
     * @param segRegEmailInfo 邮箱验证码表
     * @return 结果
     */
    @Override
    public int insertSegRegEmailInfo(SegRegEmailInfo segRegEmailInfo)
    {
        return segRegEmailInfoMapper.insertSegRegEmailInfo(segRegEmailInfo);
    }

    /**
     * 修改邮箱验证码表
     * 
     * @param segRegEmailInfo 邮箱验证码表
     * @return 结果
     */
    @Override
    public int updateSegRegEmailInfo(SegRegEmailInfo segRegEmailInfo)
    {
        return segRegEmailInfoMapper.updateSegRegEmailInfo(segRegEmailInfo);
    }

    /**
     * 批量删除邮箱验证码表
     * 
     * @param ids 需要删除的邮箱验证码表主键
     * @return 结果
     */
    @Override
    public int deleteSegRegEmailInfoByIds(Long[] ids)
    {
        return segRegEmailInfoMapper.deleteSegRegEmailInfoByIds(ids);
    }

    /**
     * 删除邮箱验证码表信息
     * 
     * @param id 邮箱验证码表主键
     * @return 结果
     */
    @Override
    public int deleteSegRegEmailInfoById(Long id)
    {
        return segRegEmailInfoMapper.deleteSegRegEmailInfoById(id);
    }
}
